home *** CD-ROM | disk | FTP | other *** search
/ Spiceworld The Movie - Interactive CD-ROM / Spiceworld The Movie: Interactive CD-ROM.iso / pc / elements / spicetwo.dir / scripts_2.ls < prev    next >
Encoding:
Text File  |  1997-12-04  |  659 b   |  30 lines

  1. on prepareFrame
  2.   global LOOPFRAME, VIDVOLUME
  3.   if not (LOOPFRAME = the frameLabel) then
  4.     initialiseFrame()
  5.     set the locV of sprite 3 to 290 - (VIDVOLUME * 105 / 256)
  6.     startTimer()
  7.     if random(2) = 1 then
  8.       set the member of sprite 6 to "long"
  9.     else
  10.       set the member of sprite 6 to "short"
  11.     end if
  12.     set the volume of sprite 6 to VIDVOLUME
  13.     set the movieRate of sprite 6 to 1
  14.   end if
  15. end
  16.  
  17. on enterFrame
  18.   if the timer > 60 then
  19.     set the visible of sprite 5 to not (the visible of sprite 5)
  20.     startTimer()
  21.   end if
  22.   if the movieRate of sprite 6 = 0 then
  23.     go(the frame + 1)
  24.   end if
  25. end
  26.  
  27. on exitFrame
  28.   go(the frame)
  29. end
  30.